#ifndef CONNECTION_POINT_H
#define CONNECTION_POINT_H

#include <ellipsegraphicitem.h>

namespace swp
{

class ConnectionPoint : public gui::EllipseGraphicItem
{
public:
    ConnectionPoint(qreal x, qreal y, int w, int h,
        QGraphicsItem *parent = 0);

    bool isInGravitationField(const QPointF& point,
        QPointF& center) const;

    bool gravitationFieldRadius() const;
    void setGravitationFieldRadius(qreal radius);

private:
    qreal m_gravitationRadius;
};

} //namespace swp

#endif
